package com.asdan.seededu;
import java.text.ParseException;
import java.util.Date;



//获得当前日期时间
public class Calenda {

	public Date getNowTime() throws ParseException {
		 Date dateTime = null;
		try {
			Date curDate = new Date(System.currentTimeMillis());   // 获取当前时间
			return curDate;
		}catch(Exception e) {
			e.printStackTrace();
		}
		return dateTime;
	}

}
